﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("dep_name", Name = "_dta_index_TL_Department_28_1755869322__K5_2")]
[Index("dep_cpy_guid", Name = "idx_CPY_Guid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class bs_client_department
{
    [Key]
    public int dep_id { get; set; }

    public Guid dep_guid { get; set; }

    [StringLength(50)]
    public string dep_code { get; set; }

    [Required]
    [StringLength(50)]
    public string dep_name { get; set; }

    public int dep_order { get; set; }

    /// <summary>
    /// 1项目部门，2职能部门
    /// </summary>
    public int dep_type { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? dep_add_time { get; set; }

    /// <summary>
    /// 0有效，1无效
    /// </summary>
    public int dep_status { get; set; }

    /// <summary>
    /// 对应pm_company
    /// </summary>
    [Required]
    [StringLength(36)]
    public string dep_cpy_guid { get; set; }
}
